import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let advertisement = {
	path: '/source',
	component: Layout,
	name: '素材管理',
	meta: {
		title: i18n.t('router.MaterialManage'),
		icon: 'dashboard'
	},
	isPermiss:'/management/resource.resource/getList',
	children: [
		{
			path: '/source/index',
			component: () => import('@/views/source/index.vue'),
			name: '素材列表',
			meta: { title: i18n.t('help.help.materialList') },
			isPermiss:'/management/resource.resource/getList'
		},
		{
			hidden: true,
			path: '/source/add_info',
			component: () => import('@/views/source/add_info/index.vue'),
			name: '添加素材',
			meta: { title: i18n.t('source.add'),induce:'/source/index' },
			isPermiss:'/management/resource.resource/add'
		},
		{
			hidden: true,
			path: '/source/details_info',
			component: () => import('@/views/source/details_info/index.vue'),
			name: '素材详情',
			meta: { title: i18n.t('source.details'),induce:'/source/index' },
			isPermiss:'/management/resource.resource/update'
		},
	]
}

export default advertisement;